// session的配置
let store = {
  storage: {},
  set(key, session) {
    this.storage[key] = session
  },
  get(key) {
    return this.storage[key]
  },
  destroy(key) {
    delete this.storage[key]
  }
}
module.exports = {
  key: 'koa:session',
  maxAge: '86400000', // cookie有效时长
  httpOnly: true, // 是否只用于http请求中获取
  overwrite: true, // 是否允许重写
  sameSite: null,
  signed: true,
  rolling: false,
  renew: false,
  autoCommit: true,
  store
}
